<div data-role='page grid' data-grid-rows="<%$($.self.utils.fusionStatusBar()?'20,':'')%>45,*,48" data-grid-cols="*" class="ui-project-new">
	<%$($.self.utils.fusionStatusBarSpace(20))%>
		<%
			var args = this.args;
			var list = this.list;
		%>
		<div class='ui-header' data-role="cell">
			<div class='ui-bar-left' data-event='tap>back:/ucenter'>
                <i class='ui-icon-31-back'></i>
            </div>
			<div class='ui-title'>我的日程</div>
		</div>
		<div class="ui-content" data-role="cell scroll">
			<div class="ui-ucenter-schedule">
				<div class="diary"><!--日历组件--></div>
				<% list.forEach(function(item){ %>
				<div class="head">
					<p><%=item.scheduleTitle%></p>
					<p><%=$.self.date_format(item.scheduleTime,"M/d")%></p>
				</div>
				<div class="content">
					<%=item.scheduleContent%>
				</div>
				<% }); %>
				<div class="title">餐厅采购系统开发</div>			
			</div>
		</div>
        <div class='ui-footer' data-role="cell"></div>
		<div class="ui-drawer">
			<input class='ui-drawer-trigger' type="button" value="新建日程" />
			<div class='ui-drawer-content'>			
            	<input type='text' class='ui-textbox position-name' placeholder='日程名称' data-bind="val<item.scheduleTitle" />
            	<input type='text' class='ui-textbox position-name' placeholder='隶属项目' data-bind="val<item.projectId" />
            	<textarea class='ui-textbox position-summary' placeholder='日程内容' style="height:83px;" data-bind="val<item.scheduleContent" /></textarea>
            	<input type='button' class='ui-drawer-ok' value='确认' data-event='click>addSchedule' />
				<input type='button' class='ui-drawer-cancel' value='取消' />
			</div>
		</div>
</div>